-- GENERATED SPELL FOR [Lord Raadan] --


function spell0_24243(pUnit, Event) --@Flame Breath,n/a--
pUnit:FullCastSpellOnTarget(43582,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24243', 562, 1)
end

function spell1_24243(pUnit, Event) --@Thunderclap,n/a--
pUnit:FullCastSpellOnTarget(43583,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24243', 6323, 1)
end

function Sorts_24243(pUnit, Event)
local choix_sorts_24243 = math.random(0, 1)
if choix_sorts_24243 == 0 then
pUnit:RegisterEvent('spell0_24243', 1, 1)
end
if choix_sorts_24243 == 1 then
pUnit:RegisterEvent('spell1_24243', 1, 1)
end
end

function mob24243_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24243', math.random(1500, 3000), 1)
end

function mob24243_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24243_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24243_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24243, 1, 'mob24243_Action')
RegisterUnitEvent(24243, 2, 'mob24243_Leave')
RegisterUnitEvent(24243, 3, 'mob24243_Kill')
RegisterUnitEvent(24243, 4, 'mob24243_Die')
